home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1996 November / macformat-043.iso / mac / Shareware Plus / Developers / OpenStack Rinaldi Collection / openstack-rinaldi-lib / DataMaster 1.3 (US) / DataMaster 1.3 (US).rsrc / HELP_5635 < prev    next >
Encoding:
Text File  |  1996-01-09  |  6.9 KB  |  136 lines

  1.  
  2.  
  3.                                        DataMaster 1.3 1.3
  4.                                         formerly FileMaker
  5.                                           by Frédéric RINALDI
  6.  
  7. DESCRIPTION
  8.   DataMaster is a set of two XCMDs : FileToRes and ResToFile. These two externals allow to create any type of document, empty or already filled, from within a script and reopen it with the original application.
  9.  
  10.  
  11.                                             FileToRes 1.3
  12.  
  13.  
  14. SYNTAX
  15.            FileToRes <file path or name>,<DATA res name>[,<dest file>]
  16.  
  17. PARAMETERS
  18.    <file path or name> can be a single name or whole pathname.  If just a single name is supplied, the file will be searched in the same folder as the current stack.
  19.  
  20.    <DATA res name> is the name of the DATA resource to create.
  21.  
  22.    <dest file> is the destination file pathname where the DATA resource will be created. If omited, current stack is used.
  23.  
  24.      Using "!", "?" and "=" as first parameter will return an online help (resp. copyright,  syntax and output).
  25.  
  26. USING
  27.    The XCMD can generate DATA resource from any kind of file with no resource fork. Along with the datas, the file type, creator and flags are put in the DATA resource in order for ResToFile XCMD to regenerate exactly the same file than the original.
  28.    If a DATA resource already exists with the same name, a dialog will be prompted for the user to choose to rename, replace or cancel. If rename is choosen, a second dialog will ask for the new name, and the Result will return the changed name. With replace, the previous resource will be overwritten.
  29.   If you plan to capture a stack, compact it before in order to get the smallest resource as possible.
  30.  
  31. ERRORS
  32.   If an error occurs, the Result can return :
  33.      "Error : Not a file"
  34.      "Error : Not a folder"
  35.      "Error : Alias file not supported"
  36.      "Error : Volume not found"
  37.      "Error : Bad Name"
  38.      "Error : File not found"
  39.      "Error : Folder not found"
  40.      "Error : File is busy"
  41.      "Error : I/O Error"
  42.      "Error : Folder is full"
  43.      "Error : Volume is locked"
  44.      "Error : No resource fork"
  45.      "Error : Duplicate file/folder name"
  46.      "Error : Moving whole volume not allowed"
  47.      "Error : Not an AppleShare volume"
  48.      "Error : AppleShare insufficient privileges"
  49.      "Error : Missing or empty parameter(s)"
  50.      "Error : Creation aborted"
  51.      "Error : Old DATA res could't be removed"
  52.      "Error : Couldn't clear DATA resource"
  53.      "Error : Creation aborted"
  54.      "Error : This file has a resource fork"
  55.      "Error : Out of memory"
  56.      "Error : Couldn't build resource"
  57.      "Error : Couldn't create DATA resource"
  58.  
  59. HISTORY
  60. 1.3                                                                                         09/22/93
  61. • Fixed resource fork update when DATA added to current stack
  62. • Added dest file parameter
  63.                                                                                      
  64. 1.2                                                                                         12/25/91
  65. • Fixed alias file bug under System 7.0.1
  66.                                                                                          
  67. 1.1                                                                                         08/04/91
  68. • Added support for System 7.0 alias files
  69. • General enhancement of the code
  70. • Added "=" param for online help
  71.  
  72.  
  73.                                               ResToFile 1.3
  74.  
  75. SYNTAX
  76.          ResToFile <name or pathName>,<DATA res name>[,<prov file>]
  77.  
  78. PARAMETERS
  79.    <file path or name> can be a single name or whole pathname.  If just a single name is supplied, the file is assumed to be in the same folder than the current stack.
  80.                                                                                          
  81.    <DATA res name> is the name of the DATA resource which will be used to re-create the original file.
  82.  
  83.    <prov file> is the provenance file pathname where the DATA resource will be loaded from. If omited, current stack is used.
  84.                                                                                          
  85.      Using "!", "?" and "=" as first parameter will return an online help (resp. copyright,  syntax and output).
  86.  
  87. USING
  88.   The XCMD uses DATA resource previously created by FileToRes XCMD to rebuild the whole file. Since file type, creator and flags were preserved, the rebuilt file is exactly the same than the original.
  89.    If a file already exists with the same name, a dialog will be prompted for the user to choose to rename, replace or cancel. If rename is choosen, a second dialog will ask for the new name, and the Result will return the changed name. With replace, the previous file will be overwritten.
  90.  
  91. ERRORS
  92.   If an error occurs, the Result can return :
  93.      "Error : Not a file"
  94.      "Error : Not a folder"
  95.      "Error : Alias file not supported"
  96.      "Error : Volume not found"
  97.      "Error : Bad Name"
  98.      "Error : File not found"
  99.      "Error : Folder not found"
  100.      "Error : File is busy"
  101.      "Error : I/O Error"
  102.      "Error : Folder is full"
  103.      "Error : Volume is locked"
  104.      "Error : No resource fork"
  105.      "Error : Duplicate file/folder name"
  106.      "Error : Moving whole volume not allowed"
  107.      "Error : Not an AppleShare volume"
  108.      "Error : AppleShare insufficient privileges"
  109.      "Error : Missing or empty parameter(s)"
  110.      "Error : DATA resource not found"
  111.      "Error : No more disk space"
  112.      "Error : Creation aborted"
  113.  
  114. HISTORY
  115. 1.3                                                                                         09/22/93
  116. • Added prov file parameter
  117.                                                                                      
  118. 1.2                                                                                         12/25/91
  119. • Fixed alias file bug under System 7.0.1
  120.                                                                                          
  121. 1.1                                                                                         08/04/91
  122. • Added support for System 7.0 alias files
  123. • General enhancement of the code
  124. • Added "=" param for online help
  125.                                                                                          
  126. TESTING
  127.    To test these XCMDs, just click on buttons below. A DATA resource named "TestStack" is already in the stack for testing purpose. It will create a stack template with two cards, script and objects.                                                                                         
  128. --------------------------------------------------------------------
  129.    All externals included in this stack are FreeWare and may be used in non-commercial software provided the following notice is visibly present :
  130.  
  131.       FileToRes & ResToFile XCMDs, © Frederic Rinaldi, 1989…1993.
  132.  
  133.    Free for non-commercial use. Use in commercial software subjected to prior acknowledgement and licensing from the author, reachable at the following network addresses:
  134.  
  135. AppleLink: RINALDI1   CalvaCom : FR10    Compuserve : 71170,2111
  136.                Internet : RINALDI1@APPLELINK.APPLE.COM